/*
 *    Copyright (c) 2018-2025, bfcloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: bfcloud
 */

import request from '@/router/axios'

// 获取模板列表
export function getTempListForZdrw(query){
  return request({
    url: '/jiangjin/jiangjinacttemplatedetail/getTempListForZdrw',
    method: 'get',
    params: query
  })
}
// 新增模板
export function saveTemplateName(query){
  return request({
    url: '/jiangjin/jiangjinacttemplatemain/saveTemplate',
    method: 'post',
    data: query
  })
}
// 获取模板名称列表 hetongcjacttemplatemain/page
export function tempage(query){
  return request({
    url: '/jiangjin/jiangjinacttemplatemain/page',
    method: 'get',
    params: query
  })
}
// 新增模板校验
export function isExsitTemplateName(query){
  return request({
    url: '/appr-contract/hetongcjacttemplatemain/isExsitTemplateName',
    method: 'get',
    params: query
  })
}

// 失去焦点保存
export function saveTemplatehang(data) {
  return request({
    url: '/jiangjin/jiangjinacttemplatedetail/saveTemplate',
    method: 'post',
    data: data
  })
}

// 提交模板有效性
export function effective(data) {
  return request({
    url: '/jiangjin/jiangjinacttemplatemain/getEffectiveTemplate',
    method: 'get',
    params: data
  })
}

// 模板shanchu
export function deleteBatchtem(data) {
  return request({
    url: '/jiangjin/jiangjinacttemplatemain/deleteBatch',
    method: 'get',
    params: data
  })
}
